package com.rover022.flixelgame.ui.pvp
{
	import com.rover022.flixelgame.manager.PlayerManager;
	import com.rover022.flixelgame.ui.BaseUI;
	import com.rover022.flixelgame.ui.equipupgrade.GeneralityGridUI;
	import com.rover022.flixelgame.vo.HeroVo;
	import flash.display.Sprite;
	import flash.events.MouseEvent;

	public class PvpFighterUI extends BaseUI
	{
		public var heroContainer:Sprite;

		public function PvpFighterUI()
		{
			super();
		}

		/**
		 * 显示自己的pk 阵形
		 *
		 */
		public function showPvpTeam():void
		{
			var array:Array = PlayerManager.getInstance().getPvpTeamHeros();
			for (var i:int = 0; i < array.length; i++)
			{
				var hero:HeroVo = array[i];
				var item:GeneralityGridUI = new GeneralityGridUI(GeneralityGridUI.HEROTYPE);
				item.setDate(hero);
				heroContainer.addChild(item);
			}
		}

		/**
		 * 显示其他对手
		 * @param num
		 *
		 */
		public function showOtherOpponent(num:uint = 3):void
		{
		}

		public function adjustmentPvpTeamClick(e:MouseEvent):void
		{
		}
	}
}
